package com.example.springbootmybatispage.request;

import java.io.Serializable;

/**
 * 接收前端/用户请求的参数
 */
public class PostByPageParamRequest implements Serializable {

    private Integer pageIndex;

    private Integer pageSize;

    public PostByPageParamRequest() {
    }

    public PostByPageParamRequest(Integer pageIndex, Integer pageSize) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "PostByPageParamRequest{" +
                "pageIndex=" + pageIndex +
                ", pageSize=" + pageSize +
                '}';
    }
}
